package com.tzbank.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_bank")
@Table(appliesTo = "mb_bank", comment = "银行信息表")
public class Bank extends BaseModel implements Serializable {

	private static final long serialVersionUID = -6497667195832928428L;

	/**
	 * 银行ID
	 */
	@ApiModelProperty(value = "银行ID")
	@Column(name = "bank_id", columnDefinition = "int(11)  NOT NULL COMMENT '银行ID'")
	private Integer bankId;

	/**
	 * 银行中文名
	 */
	@ApiModelProperty(value = "银行中文名")
	@Column(name = "bank_name_ch", columnDefinition = "varchar(50)  NOT NULL COMMENT '银行中文名'")
	private String bankNameCh;

	/**
	 * 银行英文名
	 */
	@ApiModelProperty(value = "银行英文名")
	@Column(name = "bank_name_py", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '银行拼音'")
	private String bankNamePy;

	/**
	 * 银行缩写
	 */
	@ApiModelProperty(value = "银行缩写")
	@Column(name = "bank_name_abb", columnDefinition = "varchar(10) DEFAULT NULL COMMENT '银行缩写'")
	private String bankNameAbb;

	/**
	 * 是否是热门银行
	 */
	@ApiModelProperty(value = "是否是热门银行")
	@Column(name = "bank_hot", columnDefinition = "int(11)  NOT NULL DEFAULT 0 COMMENT '是否是热门银行'")
	private Integer bankHot;

	/**
	 * 图标地址
	 */
	@ApiModelProperty(value = "图标地址")
	@Column(name = "bank_logo", columnDefinition = "varchar(100)  DEFAULT NULL  COMMENT '图标地址'")
	private String bankLogo;

}
